import App from './App'
import sendAjax from "common/api/sendAjax.js"

// #ifndef VUE3
import Vue from 'vue'
import MyModel from './component/MyModel/MyModel.vue'
import GoodsList from './component/GoodsList/GoodsList.vue'
import MyService from './component/MyService/MyService.vue'
import Phone from './component/Phone/Phone.vue'
import {
	apiUrl,
	imgURL,
	imgURL2
} from "./common/api/donman.js"
import uView from "uview-ui"
Vue.use(uView)
Vue.config.productionTip = false
Vue.prototype.$http = sendAjax;
Vue.prototype.$apiUrl = apiUrl;
Vue.prototype.$imgURL = imgURL;
Vue.prototype.$imgURL2 = imgURL2;
Vue.component('MyModel', MyModel)
Vue.component('GoodsList', GoodsList)
Vue.component('MyService', MyService)
Vue.component('Phone', Phone)
App.mpType = 'app'



const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
